<template>
	<view class="gjl-view">
		<view class="h30"></view>
		<view class="content">
			<view class="btn-box">
				<u-button @click="jRouter({path: 'loginIndex'})">去登陆吧</u-button>
			</view>
			<u-field v-model="price" label="充值金额" placeholder="请填写充值金额(请勿支付,仅为测试)">
			</u-field>
			<view class="btn-box">
				<u-button @click="pay">充值</u-button>
			</view>
		</view>
		<view class="user-info">
			用户信息: {{JSON.stringify(vuex_userInfo)}}
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				price: ''
			}
		},
		methods: {
			pay() {
				this.$pay('wx', 'rechargeMoney',{price: this.price})
			}
		}
	}
</script>

<style scoped lang="scss">
	.gjl-view {
		.content {
			padding: 0 30rpx;

			.btn-box+.btn-box {
				margin-top: 20rpx;
			}
		}
	}
</style>
